-- GENERATED SPELL FOR [Crypt Horror] --


function spell0_8557(pUnit, Event) --@Summon Carrion Scarab,Self--
pUnit:FullCastSpellOnTarget(17169,pUnit)
pUnit:RegisterEvent('Sorts_8557', 2000, 1)
end

function Sorts_8557(pUnit, Event)
local choix_sorts_8557 = math.random(0, 0)
if choix_sorts_8557 == 0 then
pUnit:RegisterEvent('spell0_8557', 1, 1)
end
end

function mob8557_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8557', math.random(1500, 3000), 1)
end

function mob8557_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8557_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8557_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8557, 1, 'mob8557_Action')
RegisterUnitEvent(8557, 2, 'mob8557_Leave')
RegisterUnitEvent(8557, 3, 'mob8557_Kill')
RegisterUnitEvent(8557, 4, 'mob8557_Die')
